#!/usr/bin/python


import syslog;

import random; 

import time;




while(1):
    
	  
    
	
	syslog.openlog(ident="HeatSensor",logoption=syslog.LOG_PID,facility=syslog.LOG_LOCAL0);
      
	syslog.syslog(syslog.LOG_ALERT,'<alert> High Temperature is detected!');
      
	syslog.closelog();
 
     
    
	time.sleep(2);
    
	